import os

# -*- coding: utf-8 -*-

XML_DIR = "./temp/srcxml/"  # 最终增广文件夹
IMG_DIR = "./temp/srcimg/"

DST_XML_DIR = "./temp/dstxml/"  # 差异化文件夹
DST_IMG_DIR = "./temp/dstimg/"


def del_file(path):
    for i in os.listdir(path):
        path_file = os.path.join(path, i)  # 取文件绝对路径
        if os.path.isfile(path_file):
            os.remove(path_file)
        else:
            del_file(path_file)


del_file(XML_DIR)
del_file(IMG_DIR)
del_file(DST_XML_DIR)
del_file(DST_IMG_DIR)
